{{extend 'layout.html'}}
{{from gluon.contrib.markdown import WIKI}}
<script>
function toggle(id) {
  $(".postrow").hide();
  $("#post"+id).show();
}
function closerow(id) {
  $("#post"+id).hide();
}
</script>

<div id = "sub_story_dimension">
{{if item:}}
    <div id= "sub_story_title">
	{{=A(item.title,_href=URL(r=request,f='read',args=[item.id]))}}
	<a id= "writer_name">
     <font size ="3">       {{="--  "}}{{=item.writer}}</font>
	</a>
	</div>
	<div id="index_comment">submitted {{=timesince(item.post_time,now)}} ago by {{=A(item.author_alias,_href=URL(r=request,f='person',args=[item.author]))}}</div>
	{{=A('report',_href=URL(r=request,f='report',args=[item.id]))}}
	{{pass}}
{{pass}}

<div id="feature_comment">
{{comments=db((db.comment.story==int(request.args[0]))&(db.comment.parente == 0)).select(orderby=~db.comment.score)}}
<!-- comment 1 -->
			{{for comment in comments:}}
			<div>
 <!--           <img src="/welcome/static/startdecoration2bright.jpg" alt="Angry face"  />-->
                {{=comment.body}}<!--<img src="/welcome/static/endecoration2bright.jpg" alt="Angry face"  /> -->{{="--  "}}<i>{{=comment.author.alias}}</i>
			<br/><a id="index_comment">{{=timesince(item.post_time,now)}} ago</a></div>
			{{pass}}
			<br/><br/>
</div>